<?php
//多态的认识代码
	interface employee{
		public function working();
	}
	class teacher implements employee{
		public function working(){
			echo "teacher";
		}
	}
	class coder implements employee{
		public function working(){
			echo "coder";
		}
	}
	function doprint(employee $i){
		$i->working();
	}
	$t1=new teacher();
	$c1=new coder();
	doprint($t1);
	doprint($c1);
